package translation;

public interface RuleTypeConstants {
	
	//Headers and Footer
	final String xmlHeader = new String("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n");
	final String header = new String("<TranslationRules xmlns=\"JPSearch:schema:translation " +
			"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance " +
			"xsi:schemaLocation=\"JPSearch:schema:translation 24800-2-translation.xsd\"" +
			"fromFormat=\"JPSearch:schema:coremetadata\" toFormat=\"urn:mpeg:mpeg7:schema:2004\">\n");
	final String footer = new String("</TranslationRules>");

	//Starting - closing tags
	final String OneToOneStartingTag = new String("\t<TranslationRule xsi:type=\"OneToOneFieldTranslationType\">\n");	
	final String OneToManyStartingTag = new String("\t<TranslationRule xsi:type=\"OneToManyFieldTranslationType\">\n");	
	final String ManyToOneStartingTag = new String("\t<TranslationRule xsi:type=\"ManyToOneFieldTranslationType\">\n");		
	final String TerminatingTag = new String("\t</TranslationRule>\n");

	//From field
	final String SourceFieldTypeStart = new String("\t\t<FromField xsi:type=\"SourceFieldType\">\n");
	final String FilteredSourceFieldTypeStart = new String("\t\t<FromField xsi:type=\"FilteredSourceFieldType\">\n");
	final String TerminatingFromField = new String("\t\t</FromField>\n");

	//XPath expression
	final String XPathExpressionStart = new String("\t\t\t<XPathExpression>");
	final String XPathExpressionTerminating = new String("</XPathExpression>\n");

	//FilteredWithRegex
	final String FilteredWithRegexStart = new String("\t\t\t<FilterWithRegExpr>");
	final String FilteredWithRegexTerminating = new String("</FilterWithRegExpr>\n");

	//To Field
	final String TargetFieldTypeStart = new String("\t\t<ToField xsi:type=\"TargetFieldType\">\n");
	final String FormattedTargetFieldTypeStart = new String("\t\t<ToField xsi:type=\"FormattedTargetFieldType\">\n");
	final String TargetFieldTypeClosing = new String("\t\t</ToField>\n");
	
	//Replace With RegEx
	final String ReplaceWithRegExprStart = new String("\t\t\t<ReplaceWithRegExpr>");
	final String ReplaceWithRegExprTerminating = new String("</ReplaceWithRegExpr>\n");
	
	//Variable Binding
	final String VariableBindingStart = new String("\t\t\t<VariableBinding>\n");
	final String VariableBindingTerminating = new String("\t\t\t</VariableBinding>\n");
	final String ListBindingStart = new String("\t\t\t\t<ListBinding>");
	final String ListBindingTerminating = new String("</ListBinding>\n");
	final String ExplicitPrefixBindingStart = new String("\t\t\t\t<ExplicitPrefixBinding>");
	final String ExplicitPrefixBindingTerminating = new String("</ExplicitPrefixBinding>\n");
	final String ExplicitPostfixBindingStart = new String("\t\t\t\t<ExplicitPostfixBinding>");
	final String ExplicitPostfixBindingTerminating = new String("</ExplicitPostfixBinding>\n");
	final String ExplicitBindingStart = new String("\t\t\t\t<ExplicitBinding>");
	final String ExplicitBindingTerminating = new String("</ExplicitBinding>\n");
	
}
